#@layout() #define main()
<link rel="stylesheet" href="_common/css/keyboard.css">
<link rel="stylesheet" href="_xpsoft/css/sccl.css">
<link rel="stylesheet" href="_xpsoft/css/login.css">
<!-- <link rel="stylesheet" type="text/css" href="_common/skin/qingxin/skin.css" id="layout-skin" /> -->
<div class="layout-admin">
	<header class="layout-header">
		<span class="header-logo"><img alt="" src="" class="header-logo-image">考场验收系统</span>
	</header>

	<section class="layout-main">
		<div id="layout_main" class="layout-main-body">
			<div class="layui-col-md8 layui-col-sm8 container">
				<div class="bg-box">
					<img alt="" src="_common/img/login_bg.png" class="login-logo">
				</div>
			</div>
			<div class="layui-col-md4 layui-col-sm4 container">
				<div class="login-box">

					<div class="login-main">
						<form action="login" method="post" class="layui-form layui-form-pane">
							<div class="layui-form-item">
								<header>
									<h1>欢迎使用</h1>
								</header>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">用户名:</label>
								<div class="layui-input-block">
									<input type="text" name="userName" id="userName" value="#(userName)" lay-verify="userName" autocomplete="on" placeholder="请输入登录名" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">密&nbsp;&nbsp;&nbsp;码:</label>
								<div class="layui-input-block">
									<input type="password" name="password" id="password" lay-verify="password" autocomplete="off" placeholder="请输入密码" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">验证码:</label>
								<div class="layui-input-block">
									<div class="layui-col-md7 layui-col-sm7">
										<input type="text" name="authCode" class="layui-input" />
									</div>
									<div class="layui-col-md5 layui-col-sm5">
										<img alt="验证码" style="width: 100%; height: 100%; padding: 5px;" src="getAuthCode" onclick="this.src='getAuthCode?'+Math.random();">
									</div>
								</div>
							</div>
							<div class="layui-form-item">
								<button class="layui-btn layui-btn-warm" id="login" lay-submit="" lay-filter="login" style="width: 100%;">登录</button>
								<div class="clear"></div>
							</div>
						</form>
					</div>
					<footer> </footer>
				</div>
			</div>
		</div>
	</section>
	<div class="layout-footer">技术支持:山西星羽云网络科技有限公司&nbsp;&nbsp;&nbsp;V1.0</div>
</div>
<script src="_common/js/md5.js"></script>
<script src="_xpsoft/js/login/login.js"></script>
  
<script>
	layui.use([ 'layer', 'form' ], function() {
		var layer = layui.layer, $ = layui.jquery, layedit = layui.layedit, form = layui.form;

		form.verify({
			userName : function(value) {
				if (value === '') {
					return '请输入登录名';
				}
			},
			password : function(value) {
				if (value === '')
					return '请输入密码';
			}
		});
		//监听提交  
		form.on('submit(login)', function(data) {
			$("#password").val(MD5($("#password").val()));
			//return false;  
		});
		
		#if(msg)
			#if(msg == 'upPWD')
				layer.open({
					type : 2,
					title : '修改密码',
					area : [ '35%', '45%' ],
					shade : 0,
					id : 'upPWD_iframe',
					content : 'xpUser/changePassword_ui?ID=#(userID)',
					zIndex : layer.zIndex,
					success : function(layero) {
						layer.setTop(layero);
					}
				});
			#else
				xpsoft.msg('#(msg)');
			#end
		#end
	});
    $(function(){
    	findDimensions();
    	window.onresize = findDimensions;
    	$("#userName").focus();
		
	});
</script>
<script type="text/javascript">
var cb = "Unknown";
if(navigator.userAgent.toLowerCase().indexOf("chrome") == -1){
     alert('请使用谷歌浏览器，否则相关功能将不能正常使用！');
     window.open('http://47.104.189.208:8080/kcys/ysht/ChromeStandalone_65.0.3325.162_Setup.exe','_blank');
}
</script>
#end
